import request from '@/utils/request'

// 查询学期项目列表
export function listTaskproject(query) {
  return request({
    url: '/edu/taskproject/list',
    method: 'get',
    params: query
  })
}

// 查询学期项目详细
export function getTaskproject(id) {
  return request({
    url: '/edu/taskproject/' + id,
    method: 'get'
  })
}

// 新增学期项目
export function addTaskproject(data) {
  return request({
    url: '/edu/taskproject',
    method: 'post',
    data: data
  })
}

// 修改学期项目
export function updateTaskproject(data) {
  return request({
    url: '/edu/taskproject',
    method: 'put',
    data: data
  })
}

// 删除学期项目
export function delTaskproject(id) {
  return request({
    url: '/edu/taskproject/' + id,
    method: 'delete'
  })
}

export function editCourseBatch(data,ctid) {
  return request({
    url: '/edu/taskproject/editBatch/' + ctid ,
    method: 'put',
    data: data
  })
}